package com.hrms.doctor.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


public class DoctorPatient implements Serializable {
    private Long doctorId;
    private Long patientId;

    public DoctorPatient(){

    }
    @NotNull(message = "医生ID不能为空")
    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    @NotNull(message = "患者ID不能为空")
    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    @Override
    public String toString() {
        return "DoctorPatient{" +
                "doctorId=" + doctorId +
                ", patientId=" + patientId +
                '}';
    }
}
